<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>超级盟主</a></li>
            <li class="active"><strong>商品详情</strong></li>
        </ol>
    </div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="goodAllAgentDetailCtrl">
    <form class="form-horizontal" id="form1" name="horizontalCard">
        <div class="form-group">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="row">
                        <div class="ibox-title">
                            <h5>基本资料</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>商品标题:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="goodsName" disabled ng-model="addInfo.goodsName">
                                <div class="req_mesg" ng-show="horizontalCard.goodsName.$dirty && horizontalCard.goodsName.$invalid">
                                    <span ng-show="horizontalCard.goodsName.$error.required">商品标题不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>起购量:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="minimum" disabled ng-model="addInfo.minimum">
                                <div class="req_mesg" ng-show="horizontalCard.minimum.$dirty && horizontalCard.minimum.$invalid">
                                    <span ng-show="horizontalCard.minimum.$error.required">起购量不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>按起购量的倍数下单:</label>
                            <div class="col-sm-5">
                                <label><input type="radio" ng-model='addInfo.isMulti' disabled name="finance"  ng-value="0"/>否</label>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <label><input type="radio" ng-model='addInfo.isMulti' disabled name="finance"  ng-value="1"/>是</label>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>所属品牌:</label>
                            <div class="col-sm-3">
                                <select class="form-control" ng-model="addInfo.brandCode" disabled ng-options="x.value as x.text for x in oemList"/>
                                <div class="req_mesg" ng-show="horizontalCard.brandCode.$dirty && horizontalCard.brandCode.$invalid">
                                    <span ng-show="horizontalCard.brandCode.$error.required">所属品牌不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>商品分类:</label>
                            <div class="col-sm-3">
                                <select class="form-control" ng-model="addInfo.groupCode" disabled ng-options="x.value as x.text for x in goodsGroupList" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>商品规格:</label>
                            <div class="col-lg-10" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-1 control-label"></label>
                            <div class="col-lg-9">
                                <div style="height:300px"  ui-grid="formatGrid" ui-grid-selection ui-grid-resize-columns ui-grid-pinning></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>商品类型:</label>
                            <div class="col-sm-3">
                                <select class="form-control" ng-model="addInfo.shipWay" disabled required ng-options="x.value as x.text for x in shipWayes"/>
                                <div class="req_mesg" ng-show="horizontalCard.shipWay.$dirty && horizontalCard.shipWay.$invalid">
                                    <span ng-show="horizontalCard.shipWay.$error.required">商品类型不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title">
                            <h5>商品主图</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <label class="col-sm-7" style="color:red;margin-top:7px;">注:商品主图最少上传1张，最多上传3张，支持jpg、png格式</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图1:</label>
                            <div class="col-sm-4" ng-if="imgUrl!=null&&imgUrl!=''">
                                <div class="col-img">
                                    <a href="{{imgUrl}}" fancybox rel="group">
                                        <img width="250px" height="150px" ng-src="{{imgUrl}}"/>
                                    </a>
                                </div>
                            </div>
                            <label class="col-sm-2 control-label">图2:</label>
                            <div class="col-sm-4" ng-if="imgUrl2!=null&&imgUrl2!=''">
                                <div class="col-img">
                                    <a href="{{imgUrl2}}" fancybox rel="group">
                                        <img width="250px" height="150px" ng-src="{{imgUrl2}}"/>
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图3:</label>
                            <div class="col-sm-4" ng-if="imgUrl3!=null&&imgUrl3!=''">
                                <div class="col-img">
                                    <a href="{{imgUrl3}}" fancybox rel="group">
                                        <img width="250px" height="150px" ng-src="{{imgUrl3}}"/>
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title">
                            <h5>商品详情</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品描述:</label>
                            <div class="col-lg-10">
                                <summernote type="text" id="summernote" class="form-control" disabled name="goodsDesc" ng-model="addInfo.goodsDesc" on-image-upload="imageUploadALL(files)" editable="editable" editor="editor" >
                                </summernote>
                            </div>
                            <div class="col-sm-12" ng-if="imgsUrl!=null && imgsUrl.length>0" data-ng-repeat="x in imgsUrl" style="margin: 10px auto;text-align: center;">
                                <a style="width: 50%;" href="{{x}}" fancybox rel="detailImgs">
                                    <img width="50%" ng-src="{{x}}"/>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-lg-12 bgff">
                <div class="col-sm-12">
                    <div class="col-lg-3"></div>
                    <div class="col-sm-6">
                        <a class="btn btn-primary4" ui-sref="allAgent.goodManage" >返回</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>